package com.mingke.java.entity;

import java.util.Date;

/**
 * 认证信息对应的实体类
 */
public class AuthEntity {
    private Integer id;
    private String auth_code;
    private String app_id;
    private String auth_host;
    private Integer auth_state;
    private Date create_time;
    private Date start_time;
    private Date end_time;
    private Integer deleted;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuth_code() {
        return auth_code;
    }

    public void setAuth_code(String auth_code) {
        this.auth_code = auth_code;
    }

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    public String getAuth_host() {
        return auth_host;
    }

    public void setAuth_host(String auth_host) {
        this.auth_host = auth_host;
    }

    public Integer getAuth_state() {
        return auth_state;
    }

    public void setAuth_state(Integer auth_state) {
        this.auth_state = auth_state;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public AuthEntity() {
    }

    public AuthEntity(String auth_code, String app_id, String auth_host, Date start, Date end) {
        this.auth_code = auth_code;
        this.app_id = app_id;
        this.auth_host = auth_host;

        this.start_time = start;
        this.end_time = end;
    }

    public AuthEntity(Integer id, String auth_code, String app_id, String auth_host, Integer auth_state, Date create_time, Date start_time, Date end_time, Integer deleted) {
        this.id = id;
        this.auth_code = auth_code;
        this.app_id = app_id;
        this.auth_host = auth_host;
        this.auth_state = auth_state;
        this.create_time = create_time;
        this.start_time = start_time;
        this.end_time = end_time;
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "AuthEntity{" +
                "auth_code='" + auth_code + '\'' +
                ", app_id='" + app_id + '\'' +
                ", auth_host='" + auth_host + '\'' +
                ", auth_state=" + auth_state +
                '}';
    }
}
